<section>
	<div class="container">
		<div id="myCarousel" class="carousel slide">
			<div class="carousel-inner">
				<div class="active item"><img src="data/test/01.thumb.jpg" /></div>
				<div class="item"><img src="data/test/02.thumb.jpg" /></div>
				<div class="item"><img src="data/test/03.thumb.jpg" /></div>
			</div>
			<a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
			<a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
			<div class="promo-box">
				<h1>匿名 + 上传 = 分享 + 欢乐</h1>
				<div class="btn btn-primary">
					<a id="createAlbum" data-toggle="modal" data-target="#createAlbumModal" href="<?=$this->createUrl('/album/create')?>">现在就创建相册</a>
				</div>
			</div>
		</div>
	</div>
</section>

<!--相册modal-->
<div id="createAlbumModal" class="modal hide fade">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    	<h3 id="albumModalLabel">创建相册</h3>
	</div>
	<div class="modal-body">
		<div class="loading">载入中...</div>
	</div>
</div>

<?php 
$script = <<<EOF
	Core.use('bootstrap-transition', 'bootstrap-modal', 'bootstrap-carousel');
EOF;
Yii::app()->clientScript->registerScript($this->id, $script);
Yii::app()->clientScript->registerLessFile(Yii::getPathOfAlias('views.layouts.less.' . $this->module->id) . '/' . $this->id . '.less');
?>